package com.wu.service;

import com.wu.pojo.Student;

import java.util.List;

/**
 * Created by wsq547 on 2021/10/3 20:57
 */
public interface StudentService {
    //增加一个学生
    int addStudent(Student student);

    //根据id删除一个学生
    int deleteStudentById(int id);

    //更新Student
    int updateStudent(Student student);

    //根据id查询，返回一个Student
    Student queryStuedntById(int id);

    //查询全部Student，返回一个list
    List<Student> queryAllStudent();

    //按姓名查找学生
    Student queryStudentByName(String studentName);

}
